package org.codeart.broker.example02;

/**
 * 房客类
 */
public class Tenant extends Person {

    public Tenant(String name, Mediator mediator) {
        super(name, mediator);
    }
    
    public void contact(String message) {
        mediator.contact(message, this);
    }
    
    public void getMessage(String message) {
        System.out.printf("房客: %s, 获取到的信息: %s\n", name, message);
    }
}
